let { db } = require('../tools');

module.exports = (req, res) => {
    db.collection('home')
        .findMany(null)
            .then(data => {
                res.json(data)
            })
            .catch(err => res.json(err))
            
}